import request from '@/utils/request'

// 查询回单列表
export function listSilp(query) {
  return request({
    url: '/silp/silp/list',
    method: 'get',
    params: query
  })
}

// 查询回单详细
export function getSilp(id) {
  return request({
    url: '/silp/silp/' + id,
    method: 'get'
  })
}

// 新增回单
export function addSilp(data) {
  return request({
    url: '/silp/silp',
    method: 'post',
    data: data
  })
}

// 修改回单
export function updateSilp(data) {
  return request({
    url: '/silp/silp',
    method: 'put',
    data: data
  })
}

// 删除回单
export function delSilp(id) {
  return request({
    url: '/silp/silp/' + id,
    method: 'delete'
  })
}
